//
//  YNIMFrameworkMacro.h
//  YNIMFramework
//
//  Created by 黄旭 on 2021/7/16.
//

#ifndef YNIMFrameworkMacro_h
#define YNIMFrameworkMacro_h

#import "YNIMmanager.h"

//#ifdef DEBUG
//#define debugLog(...) NSLog(__VA_ARGS__);
//#define debugMethod() NSLog(@"%s", __func__);
//#else
#define debugLog(...)
#define debugMethod()
//#endif

#define WEAKSELF typeof(self) __weak weakSelf = self;
//数据库操作指令
#define CREATE_TABLE @"CREATE TABLE IF NOT EXISTS "
#define INSERT_TABLE @"INSERT INTO "
#define ALTER_TABLE @"ALTER TABLE"
#define UPDATE_TABLE @"UPDATE"
#define DROP_TABLE @"DROP TABLE"
//消息来源的终端类型
#define kResource_Msg_PC @"Msg_PC" //来源电脑端
#define kResource_Msg_Phone @"Msg_Phone" //来源手机端
#define kResource_Online_Phone_PC @"online" //手机和电脑端在线标识
//置顶状态判断
#define kFlag_Top           1
#define kFlag_UnTop         0
//不知道标识符(接受消息时,保存数据库，不修改置顶标识符)
#define kFlag_UnKnowTop     2
//群/讨论组标识/项目组标识
#define DiscussionGroupFlag @"dis_"
#define UserGroupFlag @"group_"
#define ProjectTeamFlag @"third_"
#define kContact_UserGroupType      1
#define kContact_DiscussionGropType 2
#define kContact_ProjectTeamGropType 3
//数据库返回字典的key
#define kContact_User           @"User"
#define kContact_OrgTree        @"OrgTree"
#define kContact_DiscussionGrop @"DiscussionGrop"
#define kContact_UserGroup      @"UserGroup"
#define kContact_ProjectTeamGroup @"ProjectTeamGroup"
//这是判断当前VC是否是指定VC的key
#define kFlag_ChatVC            @"flagChatVC"
#define kFlag_BroadcastVC       @"flagBroadcastVC"

//正则表达式
#define kATRegular @"@(.*?)+ "
//群组@人正则匹配
#define kATRegularReturn @"(?:\\[\\/@(.*?)\\])"
//收发消息中对表情符号操作时的匹配
#define kExpressionMessageMatch @"(?:\\[\\/([0-9]+?)\\])"

#define kXMPP_domain        @"messenger.yineng.com.cn"
//来源手机端
#define kResource_Msg_Phone @"Msg_Phone"
//DES加密key
#define kXMPP_DESKEY        @"learning"
#endif /* YNIMFrameworkMacro_h */
